package com.slink.fxfk.common.domain.bo;

import java.io.Serializable;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;


/**
 * @author 新
 *
 */
public class BUser implements Serializable {
	private static final long serialVersionUID = 7398795855215458937L;

	private String id;

	@Size(min = 3, max = 20, message = "用户名字符长度必须为3-20")
	@Pattern(regexp = "^[a-zA-Z0-9]+$", message = "用户名必须是字符或数字且没有空格")
	private String username;

	@Size(min = 6, max = 20, message = "密码字符长度必须至少为6")
	private String password;

	@Pattern(regexp = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$", message = "邮箱地址不合法")
	private String email;

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
